package com.prpat;

import java.util.Date;


public class Statholder 
{
	public String hash;
	private long startTime;

	public Statholder(String hash)
	{
		this.hash = hash;
		startTime = new Date().getTime();
	}

	public String getHash(){
		synchronized (hash) {
			return hash;
		}
	}

	public String closer(String mes, String result,String source) 
	{
		long ellapsed = (new Date().getTime() - startTime) * 1000; //seconds
		StringBuilder str = new StringBuilder(mes + "," + result +","+ ellapsed +
				"," + source + "\n");
		return str.toString();
	}
}